import { getRequest } from '@/api/interceptor'
import { transNewSonglist } from '@/api/new/translate'

const REQUEST_URL = {
  topSongs: '/top/song'
}

export const getTopSongs = ({ type = 0 }) => {
  return getRequest(REQUEST_URL.topSongs, { type }).then(transNewSonglist)
}
